/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.open.api.core.action;

import cn.hutool.core.bean.BeanUtil;
import info.peigen.hotpot.component.open.api.core.repository.entity.OpenApiLogEntity;
import info.peigen.hotpot.component.open.api.facade.Api;

/**
 * <b>(OpenApiConvert)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2021/10/19
 */
public class OpenApiConvert {
    public static OpenApiLogEntity convert(Api domain) {
        return BeanUtil.copyProperties(domain, OpenApiLogEntity.class);
    }

    public static Api convert(OpenApiLogEntity entity) {
        return BeanUtil.copyProperties(entity, Api.class);
    }
}